package com.mlt.back.service.impl;

import com.mlt.back.beans.InfoDetail;
import com.mlt.back.dao.InfoDetailDao;
import com.mlt.back.dao.impl.InfoDetailDaoImpl;
import com.mlt.back.service.InfoDetailService;

import java.util.List;
/**
 *@author 李
 *@date 2022/12/29
 */
public class InfoDetailServiceImpl implements InfoDetailService {

    private InfoDetailDao infoDetailDao = new InfoDetailDaoImpl();

    @Override
    public List<InfoDetail> list() {
        return infoDetailDao.selectAll();
    }

    @Override
    public Integer add(InfoDetail infoDetail) {
        return infoDetailDao.insert(infoDetail);
    }

    @Override
    public Integer modify(InfoDetail infoDetail) {
        return infoDetailDao.update(infoDetail);
    }

    @Override
    public Integer remove(Integer id) {
        return infoDetailDao.delete(id);
    }
}
